﻿<UserControl x:Class="Ridofy.RiaClient.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" xmlns:data="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data" xmlns:my="clr-namespace:Ridofy.RiaClient.RidofyServiceReference" Loaded="UserControl_Loaded">
    <UserControl.Resources>
        <CollectionViewSource x:Key="songsViewSource" d:DesignSource="{d:DesignInstance my:Songs, CreateList=True}" />
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="White" DataContext="{StaticResource songsViewSource}">
        <Grid.RowDefinitions>
            <RowDefinition Height="224*" />
            <RowDefinition Height="76*" />
        </Grid.RowDefinitions>
        <data:DataGrid AutoGenerateColumns="False" ItemsSource="{Binding}" Name="songsDataGrid" RowDetailsVisibilityMode="VisibleWhenSelected">
            <data:DataGrid.Columns>
                <data:DataGridTextColumn x:Name="albumColumn" Binding="{Binding Path=Album}" Header="Album" Width="SizeToHeader" />
                <data:DataGridTextColumn x:Name="artistColumn" Binding="{Binding Path=Artist}" Header="Artist" Width="SizeToHeader" />
                <data:DataGridTextColumn x:Name="songIdColumn" Binding="{Binding Path=SongId}" Header="Song Id" Width="SizeToHeader" />
                <data:DataGridTextColumn x:Name="songNameColumn" Binding="{Binding Path=SongName}" Header="Song Name" Width="SizeToHeader" />
            </data:DataGrid.Columns>
        </data:DataGrid>
    </Grid>
</UserControl>
